main(){
  // 1.算术运算符
  int a = 10;
  int b = 3;
  print(a + b);
  print(a - b);
  print(a * b);
  print(a / b);
  print(a ~/ b); //取整
  print(a % b); //取余

  // 2.关系运算符
  print(a == b);
  print(a != b);
  print(a > b);
  print(a < b);
  print(a >= b);
  print(a <= b);

  // 3.逻辑运算符(不支持短路运算)
  print(a > b && a < 20);
  print(a > b || a < 20);
  print(!(a > b));

  // 4.位运算符
  print(a & b); //与运算符，相同为1，不同为0
  print(a | b); //或运算符，相同为0，不同为1
  print(a ^ b); //异或运算符，相同为0，不同为1
  print(a << b); //左移运算符，等价于a*2的b次方
  print(a >> b); //右移运算符，等价于a/2的b次方
  print(a ~/ b); //取整运算符，等价于a/b的整数部分
  print(a % b); //取余运算符，等价于a/b的余数部分


  // 5.赋值运算符
  num c = 10;
  c += 5;
  print(c);
  c -= 5;
  print(c);
  c *= 5;
  print(c);
  c /= 5;
  print(c);
  c ~/= 5;
  print(c);
  c %= 5;
  print(c);

  // 6.条件运算符
  num d = 10;
  num e = 20;
  num f = d > e ? d : e;
  print(f);

  // 7.类型运算符
  print(a is int); //判断a是否是int类型
  print(a is double);
  print(a is num);
  print(a is String);
  print(a is bool);
  print(a is List);
  print(a is Map);
  print(a is Set);
  print(a is Function);
  print(a is Object);

}